package ltd.smallwang.infrastructure.task.db.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author justd
 * @description 功能描述
 * @since 2024-05-01 01:00
 **/
@Data
@TableName("task_execute_record")
public class TaskExecuteRecordPo {
  @TableId(type = IdType.AUTO)
  private Long id;

  private Long taskId;

  private String taskName;

  private Long userId;

  private LocalDateTime startTime;

  private LocalDateTime endTime;

  private Integer recordBy;

  private Long categoryId;

  @TableField(exist = false)
  private TaskCategoryPo taskCategoryPo;

  @TableField(fill = FieldFill.INSERT)
  private LocalDateTime createTime;

  @TableField(fill = FieldFill.INSERT_UPDATE)
  private LocalDateTime modifyTime;
}
